package com.feng.eduservice.service;

import com.feng.commonutils.R;
import com.feng.eduservice.entity.EduSubject;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 * 课程科目 服务类
 * </p>
 *
 * @author fengge
 * @since 2023-01-15
 */
public interface EduSubjectService extends IService<EduSubject> {
    /**
     * 添加课程分类
     * @param file
     * @return
     */
    R addSubject(MultipartFile file);

    /**
     * 获取课程的分类(树形)
     * @return
     */
    R getAllSubject();
}
